
/*信息详情*/
Ext.define('qjtravel.view.SpotsignDetail', {
    extend: 'Ext.Container',
    xtype: 'spotsignDetail',
    requires:[
        'Ext.data.Store',
        'Ext.field.Search',
        "Ext.dataview.List"
    ],
    config:{
        layout: 'card',
        items: [
            {
                xtype:'titlebar',
                title:'最新动态',
                id:'titlebar',
                docked:'top',
                items:[
                    {
                        xtype:'button',
                        text:'返回',
                        handler:function(){
                            Ext.Viewport.remove(this.up('spotsignDetail'),true);
                            //this.up('spotsignDetail').destroy()
                        }
                    },
                    {
                        xtype:'button',
                        iconCls:'action',
                        align:'right',
                        action:'newsShare',
                        handler:function(){
                            var SpotsignName = document.getElementById('SpotsignName').innerText;
                            var SpotsignImg = document.getElementById('SpotsignImg').src;
                            var SpotsignContent = document.getElementById('SpotsignContent').innerText;
                            console.log(SpotsignImg)
                            cordova.exec(function(winParam) {
                                },
                                function(error) {
                                },
                                "Share",
                                "share",
                                [SpotsignName+SpotsignContent,SpotsignImg,'http://xayoudao.com/qujianglvyou/']);
                        }
                    }
                ]
            },
            {
                xtype:'panel',
                id:'spotsignDetail',
                scrollable:true
            }
        ],listeners: {
            back:function() {
                Ext.Viewport.remove(Ext.Viewport.getActiveItem(), true);
            }
        }
    }


});

